{% extends "bootstrap/base.html" %}

{% block title %}Flask Demo{% endblock %}
{% block navbar %}


    <div class="navbar navbar-inverse" role="navigation">
        <div class="container">
            <div class="navbar-header">
                <button type="button" class="navbar-toggle"
                        data-toggle="collapse" data-target=".navbar-collapse">
                    <span class="sr-only">Toggle navigation</span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
                <span class="navbar-brand" >员工信息管理系统 </span>
            </div>
            <div class="navbar-collapse collapse">
                <ul class="nav navbar-nav">
                    <li><a href="{{ url_for('employee.index') }}">首页</a></li>
                    <li><a href="{{   url_for('employee.employee_list') }}">员工列表</a></li>
                </ul>
                <ul class="nav navbar-right top-nav">


                <span class="navbar-brand" style="font-size: 12px">

                    <span class="btn-group">
                        <button class="btn btn-default btn-xs dropdown-toggle" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">
                            <i class="fa fa-user fa-fw"></i>{{ g.user or '' }}
                            <span class="caret"></span>
                        </button>
                        <ul class="dropdown-menu">
                            <li><a href="{{ url_for('employee.logout') }}"><i class="fa fa-fw fa-power-off"></i>退出登录</a></li>
                        </ul>
                    </span>
                </span>

        </ul>
            </div>
        </div>
    </div>


{% endblock %}

{% block content %}
        <div class="row" id="error-warning">
        {% for message in get_flashed_messages() %}
            <div class="alert alert-warning text-center">
                <button type="button" class="close"
                        data-dismiss="alert">&times;</button>
                {{ message }}
            </div>
        {% endfor %}
    </div>
    <div class="container">
        {% block page_content %}{% endblock %}
    </div>

{% endblock %}
